import request from "@/utils/request"

// 获取商品详情
export function getGoodsDetail(id) {
    return request({
        url: `/goods?id=${id}`,
        method: 'GET'
    })
}

// 获取热榜商品
export function getHotGoods({ id, type, limit = 3} ) {
    return request({
        url: `/goods/hot/`,
        method: 'GET',
        params: {
            id, type, limit
        }
    })
}